CREATE TABLE [dbo].[Include]
(
[MemberId] [int] NOT NULL,
[ThreadId] [int] NOT NULL,
[IsArchived] [bit] NOT NULL CONSTRAINT [DF_Include_IsArchived] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Include] ADD CONSTRAINT [FK_Include_Member] FOREIGN KEY ([MemberId]) REFERENCES [dbo].[Member] ([Id])
GO
ALTER TABLE [dbo].[Include] ADD CONSTRAINT [FK_Include_Thread] FOREIGN KEY ([ThreadId]) REFERENCES [dbo].[Thread] ([Id])
GO
